#include "bsp.h"
#include "io430.h"


// set mclk = 4M
void CLK_INIT(){
	__bis_SR_register(SCG0);                // Disable the FLL control loop
	UCSCTL1 = DCORSEL_5;                    // Select DCO range 16MHz operation
	UCSCTL2 |= 121;                         // Set DCO Multiplier for 8MHz
						// (N + 1) * FLLRef = Fdco
						// (121 + 1) * 32768 = 4MHz

	__bic_SR_register(SCG0);                // Enable the FLL control loop

  
}